import {createApp} from 'vue'
import App from './App.vue'
import router from './router'
import store from "@/store/index.js"
import ElementPlus from 'element-plus';
import 'element-plus/theme-chalk/index.css';
import locale from 'element-plus/lib/locale/lang/zh-cn'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import "@/assets/icons/like/iconfont.css"
import "@/assets/icons/userInfo/iconfont.css"


import VMdEditor from '@kangc/v-md-editor';
import '@kangc/v-md-editor/lib/style/base-editor.css';
import vuepressTheme from '@kangc/v-md-editor/lib/theme/vuepress.js';
import '@kangc/v-md-editor/lib/theme/style/vuepress.css';


import Prism from 'prismjs';

VMdEditor.use(vuepressTheme, {
    Prism,
});

const app = createApp(App).use(store).use(router).use(ElementPlus, {locale});
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(VMdEditor);
app.mount('#app');



